<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/views/include.jsp" %>
<%@ page language="java" import="javax.servlet.jsp.PageContext" %>
<!DOCTYPE html>
<html>
    <head>
        <title>Bienveido a ASF</title>
    </head>

    <body>
        <H1>Bienveido a ASF</H1>
        <form id="form" action="<c:url value='/login.do'/>" method="POST">

            <c:if test="${not empty param.err}">
                <div><c:out value="${SPRING_SECURITY_LAST_EXCEPTION.message}"/></div>
            </c:if>
            <c:if test="${not empty param.out}">
                <div>Se ha cerrado su sesi&oacute;n satisfactoriamente.</div>
            </c:if>
            <c:if test="${not empty param.time}">
                <div>Se ha cerrado su sesi&oacute;n por inactividad.</div>
            </c:if>

            Usuario:<br>
            <input type="text" name="username" value=""/><br><br>
            Contraseña:<br>
            <input type="password" name="password" value=""/>

            <input value="Iniciar Sesi&oacute;n" name="submit" type="submit"/>
        </form>
    </body>
</html>